package cn.iocoder.yudao.module.bpm.controller.admin.journalapply.vo;

import cn.iocoder.yudao.framework.common.pojo.PageParam;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDateTime;

import static cn.iocoder.yudao.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;

@Schema(description = "管理后台 - 期刊申请分页 Request VO")
@Data
@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)
public class JournalApplyPageReqVO extends PageParam {

    @Schema(description = "申请编号")
    private String applyCode;

    @Schema(description = "申请人", example = "10056")
    private Long applyUserId;

    @Schema(description = "联系方式")
    private String phone;

    @Schema(description = "使用期限")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime[] useEndTime;

    @Schema(description = "使用理由")
    private String applyReson;

    @Schema(description = "附件")
    private String file;

    @Schema(description = "申请状态")
    private String status;


    @Schema(description = "创建时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime[] createTime;

}